import api from './api'

/**
 * 订单创建
 */
export function orderSubmit(data) {
  return api.post('/lbwxmp/MPShopOrderCreate', data, { login: false })
}



/**
 * 订单列表
 */
export function orderGetOrders(data) {
  return api.post('/lbwxmp/MPShopOrderList', data, { login: false })
}


/**
 * 计算详情
 */
export function orderDetail(data) {
  return api.post(`/lbwxmp/MPShopOrderDetail`, data, { login: false })
}



/**
 * 订单收货
 */
export function orderReceive(data) {
  return api.post(`/lbwxmp/MPShopOrderTake`, data, { login: false })
}

/**
 * 订单退款
 */
export function orderRefund(data) {
  return api.post(`/lbwxmp/MPShopOrderRefund`, data, { login: false })
}


/**
 * 订单支付
 */
export function payUnify(data) {
  return api.post(`/lbwxmp/MPShopOrderPay`, data, { login: false })
}
